.box-sizing {
    box-sizing: border-box;
}
page,
view {
    box-sizing: border-box;
}

.bg-cov {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.bg-con {
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

.bg-100 {
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
}
// 表单容器
.add-form-container {
    min-height: 100vh;
    background-color: rgba(251, 252, 250, 1);
    padding: 30rpx;

    .basic-info {
        background-color: #fff;
        margin-bottom: 20rpx;
    }
    /* 表单相关样式 */
    .farm-form {
        .uni-forms-item {
            margin-bottom: 22rpx;
        }

        .uni-forms-item__label {
            font-size: 28rpx;
            color: #999999 !important;
            padding-bottom: 8rpx;
        }

        .uni-easyinput {
            background-color: #f5f5f5 !important;
            border-radius: 8rpx !important;
        }

        .uni-data-select {
            background-color: #f5f5f5 !important;
            border-radius: 8rpx !important;
        }

        .uni-select--border {
            border: none !important;
        }

        .uni-forms-item__content {
            width: 100%;
        }
    }
    .section-title {
        font-size: 32rpx;
        font-weight: 500;
        color: #333;
        margin-bottom: 20rpx;
    }
    .photo-section {
        background-color: #fff;
        margin-bottom: 20rpx;
    }

    .slider-container {
        padding: 0 15rpx;
        position: relative;

        .slider-value {
            position: absolute;
            right: 15rpx;
            top: 0;
            font-size: 28rpx;
            color: #2eb57d;
        }
    }

    .radio-group {
        display: flex;
        flex-wrap: wrap;

        .radio-item {
            display: flex;
            align-items: center;
            margin-right: 40rpx;
            margin-bottom: 20rpx;

            .radio-circle {
                width: 40rpx;
                height: 40rpx;
                border-radius: 50%;
                border: 2rpx solid #ddd;
                display: flex;
                align-items: center;
                justify-content: center;
                margin-right: 10rpx;

                &.active {
                    border-color: #2eb57d;
                }

                .radio-inner {
                    width: 24rpx;
                    height: 24rpx;
                    border-radius: 50%;
                    background-color: #2eb57d;
                }
            }

            .radio-label {
                font-size: 28rpx;
                color: #333;
            }
        }
    }
    .input-unit {
        padding: 0 10rpx 0 0;
        color: #999;
        font-size: 28rpx;
    }
}

.uni-date-picker-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10rpx 20rpx;
    border: solid 1px #e5e5e5;
    box-sizing: border-box;

    .date-icon {
        height: 100%;
        display: flex;
        align-items: center;
    }

    .placeholder {
        color: #999;
    }
}

.form-two-columns {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20rpx;

    .half {
        width: calc(50% - 10rpx);
    }
}
.submit-btn-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 40rpx 0 40rpx 0;
    .submit-btn {
        width: 576rpx;
        height: 84rpx;
        background-color: #2e6140;
        color: #fff;
        font-size: 32rpx;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8rpx;
    }
}
// 列表容器
.comm-list-container {
    min-height: 100vh;
    padding-bottom: 100rpx;
    background-color: #f5f5f5;
    .search-box {
        padding: 20rpx 30rpx;
        background-color: #fff;
        // 隐藏
        display: none;
    }
}
/* 列表项通用样式 */
.comm-record-list {
    padding: 20rpx 30rpx 100rpx;

    .item-header {
        padding: 20rpx 30rpx;
        border-bottom: 1rpx solid #f0f0f0;
        display: flex;
        justify-content: space-between;
        align-items: center;

        .icon-wrapper {
            width: 40rpx;
            height: 40rpx;
        }
        .date-title {
            font-family: OPPOSans, OPPOSans;
            font-weight: bold;
            font-size: 28rpx;
            color: #434343;
        }
        .date-text {
            font-family: PingFang SC, PingFang SC;
            font-weight: 400;
            font-size: 28rpx;
            color: #999999;
        }
        .date-small {
            font-family: PingFang SC, PingFang SC;
            font-weight: 400;
            font-size: 28rpx;
            color: #999999;
        }
    }

    .item-content {
        padding: 20rpx 30rpx;

        .info-row {
            flex: 1;
            display: flex;
            margin-bottom: 15rpx;

            .info-label {
                font-family: PingFang SC, PingFang SC;
                font-weight: 400;
                font-size: 24rpx;
                color: rgba(128, 128, 128, 0.6);
                white-space: nowrap;
            }

            .info-value {
                margin-left: 10rpx;
                font-family: PingFang SC, PingFang SC;
                font-weight: 400;
                font-size: 24rpx;
                color: #4d4d4d;
            }
            .info-alone {
                font-family: OPPOSans, OPPOSans;
                font-weight: 500;
                font-size: 24rpx;
                color: #4d4d4d;
            }
        }

        .info-columns {
            display: flex;
            margin-top: 20rpx;
            margin-bottom: 20rpx;

            .info-column {
                flex: 1;

                .column-label {
                    font-family: OPPOSans, OPPOSans;
                    font-weight: 500;
                    font-size: 24rpx;
                    color: #4d4d4d;
                    display: block;
                    margin-bottom: 10rpx;
                }

                .column-value {
                    font-family: D-DIN-DIN, D-DIN-DIN;
                    font-weight: bold;
                    font-size: 30rpx;
                    color: #27c95d;
                }
            }
        }

        .item-images {
            display: flex;

            image {
                width: 144rpx;
                height: 144rpx;
                margin-right: 20rpx;
                border-radius: 6rpx;
            }
        }
    }
}
.empty-list {
    padding: 100rpx 0;
    display: flex;
    flex-direction: column;
    align-items: center;

    text {
        font-size: 28rpx;
        color: #999;
        margin-bottom: 30rpx;
    }

    .add-btn {
        padding: 20rpx 40rpx;
        background-color: #2eb57d;
        border-radius: 8rpx;
        display: flex;
        align-items: center;

        text {
            color: #fff;
            font-size: 28rpx;
            margin: 0 0 0 10rpx;
        }
    }
}

.add-button {
    position: fixed;
    bottom: 50rpx;
    left: 50%;
    transform: translateX(-50%);
    width: 576rpx;
    height: 84rpx;
    background-color: #2e6b34;
    border-radius: 8rpx;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4rpx 10rpx rgba(0, 0, 0, 0.2);
    z-index: 99;

    .add-icon {
        color: #fff;
        font-size: 50rpx;
        line-height: 50rpx;
    }
}
// 状态的tag
.task-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;

    &.status-pending {
        background-color: #fff3e0;
        color: #ff9800;
    }

    &.status-in-progress {
        background-color: #e3f2fd;
        color: #2196f3;
    }

    &.status-completed {
        background-color: #e8f5e9;
        color: #4caf50;
    }

    &.status-cancelled {
        background-color: #ffebee;
        color: #f44336;
    }
}
.text-nowrap {
    white-space: nowrap;
}
.space-between {
    display: flex;
    justify-content: space-between;
}
.info-red {
    font-family: OPPOSans, OPPOSans;
    font-weight: 400;
    font-size: 24rpx;
    color: #ed1515;

    background: rgba(255, 229, 229, 1);
    padding: 10rpx 20rpx;
    border-radius: 4rpx;
}


.loading-more {
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-text {
    color: #666;
    font-size: 14px;
}

.no-more {
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-more-text {
    color: #999;
    font-size: 14px;
}